Repository navigation
feat: add FriendliAI serverless models and pricing - #1033
Open
Lee-Si-Yoon wants to merge 1 commit into
Open
Lee-Si-Yoon wants to merge 1 commit into
Lee-Si-Yoon wants to merge 1 commit into
Conversation
Adds general/friendli.json and pricing/friendli.json for the 5 models currently listed at https://api.friendli.ai/serverless/v1/models. Prices converted from USD/token to cents/token (x100).
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The FriendliAI catalog additions have no active review issues.
No open issues 🎉
What changed in this PR
Adds FriendliAI serverless support to the model catalog as a data-only replacement for #871, using the friendli provider key aligned with the gateway integration.
Changes:
- Adds five models with parameter defaults, token limits, and tool/image capabilities.
- Defines per-model pricing in cents per token, including cache-read rates and calculations.
- Lists FriendliAI among the supported providers.
| File | Description |
|---|---|
| README.md | Adds FriendliAI to the provider list. |
| pricing/friendli.json | Adds token pricing and cache-read-aware cost calculations. |
| general/friendli.json | Defines provider defaults and capabilities for five models. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds FriendliAI serverless models to
general/andpricing/. The data comes from the public catalog athttps://api.friendli.ai/serverless/v1/models, which needs no auth.This is a data-only replacement for #871. That PR also shipped a sync script, and its model list has gone stale since then.
Provider key
friendlimatches the gateway provider in Portkey-AI/gateway#1756.Models (5)
google/gemma-4-31B-itzai-org/GLM-5.1zai-org/GLM-5.2zai-org/GLM-5.3zai-org/GLM-5.3-Flashdefaultpricing block uses the same cache-read-awarecalculateasnovita-ai/moonshot.generaldefaults (temperature,top_p,top_k,min_p,repetition_penalty) come from the API's per-modeldefault_params, which are the same for all 5 models. Min/max ranges are set only where Friendli's API spec documents them.zai-org/GLM-5.1hasdeprecation_date: 2026-11-20in the catalog. I'll send a follow-up to remove it after that date.Checks
eslint --ext .jsonandprettier --check(2.8.8) pass on the changed filespython3 scripts/check_duplicate_keys.pypassesmax_tokensand image flag against a live response from the API, and all of them match